package com.seaengine.util
{
	import flash.display.Sprite;
	import flash.filters.GlowFilter;
	
	public class graphicUtils
	{
		public static var glowFilterBattle:GlowFilter = new GlowFilter(0xFF0000,1,6,6,3);
		public static var glowFilterYellow:GlowFilter = new GlowFilter(0xffee00);
		public static var glowFilterGreen:GlowFilter = new GlowFilter(0x00DD58,0.75,2,2,4);
		public static var glowFilterRed:GlowFilter = new GlowFilter(0xac0000,1,6,6,4);
		public static var glowFilterBlack:GlowFilter = new GlowFilter(0x000000,1,6,6,4);
		public static var glowFilter2:GlowFilter = new GlowFilter(0x000000, 1, 3, 3, 3);
		public static var glowFilterEXP:GlowFilter = new GlowFilter(0x003100 , 0.7 , 8 , 8 , 4);
		
		/**黑色描边字体*/
		public static var strokeBlackFont:GlowFilter = new GlowFilter(0x000000 , 1 , 2 , 2 , 16);
		
		/**白色描边字体*/
		public static var strokeWhiteFont:GlowFilter = new GlowFilter(0xFFFFFF , 1 , 2 , 2 , 16);
		
		/**蓝色描边字体*/
		public static var strokeBlueFont:GlowFilter = new GlowFilter(0x00357F , 1 , 2 , 2 , 16);
		
		/**蓝色1描边字体*/
		public static var strokeBlue1Font:GlowFilter = new GlowFilter(0x025AC8 , 1 , 2 , 2 , 16);
		
		/**禁用描边字体*/
		public static var strokeDisableFont:GlowFilter = new GlowFilter(0x7D7D7D , 1 , 2 , 2 , 16);
		
		/**黑色透明描边字体 书店*/
		public static var strokeBlackGrayFont:GlowFilter = new GlowFilter(0x000000 , 0.5 , 2 , 2 , 16);
		
		public function graphicUtils()
		{
		}
		public static function drawCircle(_obj:Sprite, _x:int= 0 , _y:int= 0,_color:uint=0xff00ff00,_size:int=10):void
		{
			_obj.graphics.beginFill(_color);
			_obj.graphics.drawCircle(_x,_y,_size);
			_obj.graphics.endFill();
		} 
		
		public static function drawRect(_obj:Sprite, _x:int = 0 , _y:int = 0 , _width:int = 10,_height:int = 10,_color:uint = 0xffff0000,_alpha:Number = 0.3):void
		{
			
			_alpha = _alpha ;
			_obj.graphics.beginFill(_color, _alpha);
			_obj.graphics.drawRect(_x,_y,_width,_height);
			_obj.graphics.endFill();		
		}


	}
}